<template>
	<view class="richtext-page special-bg">
		<u-navbar :autoBack="true" :placeholder="true" leftIconColor="#ffffff" :bgColor="bgColor">
			<view slot="center" class="navtitle">{{title}}</view>
		</u-navbar>
		<view class="parse">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				title:'',
				bgColor: 'rgba(0,0,0,0.0)',
				content:'<p>露从今夜白，月是故乡明</p>'
			}
		},
		onLoad(e) {
			if(e.name == 'policy'){
				this.title = '隐私与政策'
			}
			if(e.name == 'use'){
				this.title = '使用条款'
			}
		}
	}
</script>

<style scoped lang="scss">
	.richtext-page{
		.navtitle{
			color: #fff;
			font-size: 32rpx;
		}
		.parse{
			padding: 30rpx;
			color: #fff;
			font-size: 30rpx;
		}
	}
</style>